import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Article } from '../../entities/article.entity';
import { ArticleService } from './article.service';
import { ArticlePublicController } from './article-public.controller';
import { ArticleUserController } from './article-user.controller';
import { ArticleAdminController } from './article-admin.controller';
import { UserModule } from '../user/user.module';
import { TagModule } from '../tag/tag.module';
import { CommonModule } from '../common/common.module';

@Module({
  imports: [TypeOrmModule.forFeature([Article]), UserModule, TagModule,CommonModule],
  controllers: [
    ArticleUserController,
    ArticleAdminController,
    ArticlePublicController,
  ],
  providers: [ArticleService],
  exports: [ArticleService],
})
export class ArticleModule {}